Fix linter error from 2.1.0 (due to noarch: python
)
#174
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The linter does not like having
noarch: python
at the top-level with selectors ( #167 (comment) ) ( conda-forge/conda-smithy#1887 (comment) ). Rewriting the recipe without selectors is a substantial lift and not worth it given the move towards rattler-build.However if we don't have
noarch
or askip
at the top-level, a full matrix of Python versions is built out for all Python XGBoost packages (despite these packages being redundant). Example below taken from this CI run (attached log for posterity):Packages generated by Python matrix in past CI run:
To clean this up, we skip any Python version except the minimum one that XGBoost supports. This ensures we build for exactly one Python. To get the syntax right we need to use Jinja.
Unfortunately that means we need to consolidate our other
skip
s into this one, which includes the Windows CUDA 11.8 skip. So we do so and try to make the syntax as pleasing as we can within the constraints.That all being said, this does keep the linter happy and it re-renders without generated unneeded Python builds.
Checklist
0
(if the version changed)conda-smithy
(Use the phrase@conda-forge-admin, please rerender
in a comment in this PR for automated rerendering)